﻿//***********************************************************************
// Assembly         : NMortgage.UI
// Author           : Mike
// Created          : 04-29-2012
//
// Last Modified By : Mike
// Last Modified On : 04-29-2012
// Description      : 
//
// Copyright        : (c) . All rights reserved.
//***********************************************************************
namespace NMortgage.UI.Model
{
    using System.Linq;

    public sealed class FeeCollection : AEntityBaseCollection<Fee>
    {
        #region Properties

        public int TotalMonths
        {
            get
            {
                return this.AsQueryable().Sum(p => p.TotalDurationInMonths);
            }
        }

        #endregion Properties
    }
}